// 部署配置文件
module.exports = {
  // 部署目标配置
  targets: {
    // 测试环境
    test: {
      host: 'test.example.com',
      port: 22,
      username: 'deploy',
      password: 'password',
      remotePath: '/var/www/html/test',
      buildCommand: 'npm run build:h5:prod'
    },
    // 生产环境
    production: {
      host: 'prod.example.com',
      port: 22,
      username: 'deploy',
      password: 'password',
      remotePath: '/var/www/html/production',
      buildCommand: 'npm run build:h5:prod'
    }
  },
  
  // 文件上传配置
  upload: {
    // 本地构建目录
    localPath: './dist/h5',
    // 排除的文件
    exclude: [
      '**/*.map',
      '**/*.log',
      '**/node_modules/**'
    ],
    // 压缩配置
    compress: {
      enabled: true,
      level: 6
    }
  },
  
  // 备份配置
  backup: {
    enabled: true,
    maxBackups: 5,
    backupPath: '/var/backups/h5'
  },
  
  // 健康检查配置
  healthCheck: {
    enabled: true,
    url: '/health',
    timeout: 5000,
    retries: 3
  }
}
